.class public abstract Les/ny;
.super Ljava/lang/Object;
.source "AbsMenuItemProvider.java"


# instance fields
.field protected a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/v00;",
            ">;"
        }
    .end annotation
.end field

.field protected b:[Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a([Ljava/lang/String;)Ljava/util/List;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Les/v00;",
            ">;"
        }
    .end annotation

    .line 22
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_2

    if-nez p1, :cond_0

    goto :goto_1

    .line 23
    :cond_0
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_2

    aget-object v3, p1, v2

    .line 24
    iget-object v4, p0, Les/ny;->a:Ljava/util/Map;

    invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/v00;

    if-eqz v3, :cond_1

    .line 25
    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    :goto_1
    return-object v0
.end method

.method public varargs a(Z[Ljava/lang/String;)V
    .locals 3

    const/4 v0, 0x0

    .line 17
    :goto_0
    array-length v1, p2

    if-ge v0, v1, :cond_1

    .line 18
    aget-object v1, p2, v0

    .line 19
    iget-object v2, p0, Les/ny;->a:Ljava/util/Map;

    invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/MenuItem;

    if-eqz v1, :cond_0

    .line 20
    invoke-interface {v1, p1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method public a()[Ljava/lang/String;
    .locals 1

    .line 21
    iget-object v0, p0, Les/ny;->b:[Ljava/lang/String;

    return-object v0
.end method

.method public a([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
    .locals 5

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 7
    :goto_0
    array-length v2, p1

    const/4 v3, -0x1

    if-ge v1, v2, :cond_1

    .line 8
    aget-object v2, p1, v1

    invoke-virtual {v2, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v1, -0x1

    :goto_1
    if-ne v1, v3, :cond_2

    return-object p1

    .line 9
    :cond_2
    array-length p2, p1

    add-int/lit8 p2, p2, -0x1

    new-array p2, p2, [Ljava/lang/String;

    const/4 v2, 0x0

    .line 10
    :goto_2
    array-length v3, p1

    if-ge v0, v3, :cond_4

    if-ne v0, v1, :cond_3

    goto :goto_3

    :cond_3
    add-int/lit8 v3, v2, 0x1

    .line 11
    aget-object v4, p1, v0

    aput-object v4, p2, v2

    move v2, v3

    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :cond_4
    return-object p2
.end method

.method protected a([Ljava/lang/String;Ljava/lang/String;I)[Ljava/lang/String;
    .locals 5

    .line 1
    array-length v0, p1

    if-gt p3, v0, :cond_3

    .line 2
    array-length v0, p1

    add-int/lit8 v0, v0, 0x1

    .line 3
    new-array v1, v0, [Ljava/lang/String;

    if-gez p3, :cond_0

    add-int/lit8 p3, v0, -0x1

    :cond_0
    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v2, v0, :cond_2

    if-ne v2, p3, :cond_1

    .line 4
    aput-object p2, v1, v2

    goto :goto_1

    :cond_1
    add-int/lit8 v4, v3, 0x1

    .line 5
    aget-object v3, p1, v3

    aput-object v3, v1, v2

    move v3, v4

    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    return-object v1

    .line 6
    :cond_3
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "Error occurred when making a new MenuSet. Illegal index!"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method protected a([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
    .locals 3

    .line 12
    array-length v0, p1

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 13
    :goto_0
    array-length v2, p1

    if-ge v1, v2, :cond_1

    .line 14
    aget-object v2, p1, v1

    invoke-virtual {v2, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 15
    aput-object p3, v0, v1

    goto :goto_1

    .line 16
    :cond_0
    aget-object v2, p1, v1

    aput-object v2, v0, v1

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method public varargs b([Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0, p1}, Les/ny;->a(Z[Ljava/lang/String;)V

    return-void
.end method

.method public b()[Ljava/lang/String;
    .locals 6

    .line 2
    iget-object v0, p0, Les/ny;->b:[Ljava/lang/String;

    if-eqz v0, :cond_4

    iget-object v0, p0, Les/ny;->a:Ljava/util/Map;

    if-nez v0, :cond_0

    goto :goto_2

    .line 3
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 4
    iget-object v1, p0, Les/ny;->b:[Ljava/lang/String;

    array-length v2, v1

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_2

    aget-object v4, v1, v3

    .line 5
    iget-object v5, p0, Les/ny;->a:Ljava/util/Map;

    invoke-interface {v5, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/v00;

    invoke-virtual {v5}, Les/v00;->isEnabled()Z

    move-result v5

    if-nez v5, :cond_1

    .line 6
    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 7
    :cond_2
    iget-object v1, p0, Les/ny;->b:[Ljava/lang/String;

    .line 8
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 9
    invoke-virtual {p0, v1, v2}, Les/ny;->a([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    goto :goto_1

    :cond_3
    return-object v1

    .line 10
    :cond_4
    :goto_2
    iget-object v0, p0, Les/ny;->b:[Ljava/lang/String;

    return-object v0
.end method

.method public c()Ljava/util/Map;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/v00;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/ny;->a:Ljava/util/Map;

    return-object v0
.end method
